package org.example.controller;

import org.example.api.CommonResult;
import org.example.service.SuperAdminService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping(value = "user")
public class SuperAdminController {

    private static final Logger LOGGER = LoggerFactory.getLogger(SuperAdminController.class);
    @Autowired
    private SuperAdminService superAdminService;

    @RequestMapping(value = "login/{name}/{pwd}",method = RequestMethod.GET)
    @ResponseBody
    private CommonResult login(@PathVariable("name") String name, @PathVariable("pwd") String pwd){
         return CommonResult.success(superAdminService.login(name,pwd));
    }
}
